package cn.pcios.kindle.db.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import cn.pcios.kindle.db.table.Mobi;

public interface MobiRepository extends JpaRepository<Mobi, Integer> {
	
	@Query(nativeQuery=true,value = "select t.* from mobi t where send=0 limit 0,50 ") 
	public List<Mobi> queryNotSend();

	public Mobi findById(int epubid);

}
